<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:substituteby="template::docHead(#{system.name},'服务管理')">
</head>
<body>
<script type="text/javascript" th:substituteby="system/authorization/svrlist.js::js"></script>
<nav th:replace="template::nav"></nav>
<div class="container-fluid">
    <div class="row">
        <div class="col-sm-12 col-md-12 main">
            <nav class="navbar navbar-default">
                <div class="container-fluid">
                    <div class="navbar-header">
                        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                                data-target="#bs-example-navbar-collapse-2" aria-expanded="false">
                            <span class="sr-only">Toggle navigation</span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </button>
                        <a class="navbar-brand" href="#">服务管理：</a>
                    </div>
                    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-2">
                        <button type="button" class="btn btn-primary navbar-btn" data-toggle="modal"
                                data-target="#myModal">
                            <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
                            创建服务
                        </button>
                        <form class="navbar-form navbar-right" role="search" th:action="@{./users}">
                            <div class="form-group">
                                <input type="text" class="form-control" placeholder="查询" id="userName" name="userName"/>
                            </div>
                            <button type="submit" class="btn btn-default">查询</button>
                        </form>
                    </div>
                </div>
            </nav>

            <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
                 aria-hidden="true">
                <div class="modal-dialog" style="width: 400px;">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close"
                                    data-dismiss="modal" aria-hidden="true">
                                &times;
                            </button>
                            <h4 class="modal-title" id="myModalLabel">
                                创建商户服务
                            </h4>
                        </div>
                        <form th:action="@{./users}" method="post">
                            <div class="modal-body">
                                <div class="input-group" style="margin-bottom: .5em;">
                                    <span class="input-group-addon" id="basic-username">商户名称</span>
                                    <input type="text" id="addUserName" name="addUserName" class="form-control"
                                           placeholder="商户名称"
                                           aria-describedby="basic-username"/>
                                </div>
                                <div class="input-group" style="margin-bottom: .5em;">
                                    <span class="input-group-addon" id="description">描述</span>
                                    <textarea class="form-control" rows="3" placeholder="描述"
                                              aria-describedby="description"></textarea>
                                </div>
                                <label class="checkbox-inline">
                                    <input type="radio" id="inlineCheckbox1" name="isvalidable" value="option1"
                                           checked="checked"/>&nbsp;有效
                                </label>
                                <label class="checkbox-inline">
                                    <input type="radio" id="inlineCheckbox2" name="isvalidable" value="option2"/>&nbsp;无效
                                </label>
                            </div>
                            <div class="modal-footer">
                                <button type="button" class="btn btn-default"
                                        data-dismiss="modal">关闭
                                </button>
                                <button type="button" class="btn btn-primary">
                                    确定
                                </button>
                            </div>
                        </form>
                    </div><!-- /.modal-content -->
                </div><!-- /.modal -->
            </div>

            <div class="table-responsive">
                <table class="table table-striped">
                    <thead>
                    <tr>
                        <th>序号</th>
                        <th>商户名称</th>
                        <th>公众号appid</th>
                        <th>公众号appsecret</th>
                        <th>服务路径</th>
                        <th>业务模块名称</th>
                        <th>描述</th>
                        <th>创建时间</th>
                        <th>是否有效</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>
                        <td>1</td>
                        <td>梵景瑜伽</td>
                        <td>qwdvfhuyukjfnnvbg</td>
                        <td>qwdvfhuyukjfnnvbg</td>
                        <td>fanjinyoga</td>
                        <td>fanjing</td>
                        <td>梵景瑜伽服务设置</td>
                        <td>2017-06-01 10:10:10.123</td>
                        <td>有效</td>
                        <td></td>
                    </tr>
                    <tr>
                        <td>1</td>
                        <td>梵景瑜伽</td>
                        <td>qwdvfhuyukjfnnvbg</td>
                        <td>qwdvfhuyukjfnnvbg</td>
                        <td>fanjinyoga</td>
                        <td>fanjing</td>
                        <td>梵景瑜伽服务设置</td>
                        <td>2017-06-01 10:10:10.123</td>
                        <td>有效</td>
                        <td></td>
                    </tr>
                    <tr>
                        <td>1</td>
                        <td>梵景瑜伽</td>
                        <td>qwdvfhuyukjfnnvbg</td>
                        <td>qwdvfhuyukjfnnvbg</td>
                        <td>fanjinyoga</td>
                        <td>fanjing</td>
                        <td>梵景瑜伽服务设置</td>
                        <td>2017-06-01 10:10:10.123</td>
                        <td>有效</td>
                        <td></td>
                    </tr>
                    </tbody>
                </table>

            </div>
        </div>
    </div>
</div>
</body>
</html>
